# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/28 下午6:16
 @Author  : tgy
 
"""
import os

def test01(file_path):
    ...
    ba = None
    with open(file_path,mode='rb') as f:
        ba = bytearray(os.path.getsize(file_path))
        f.readinto(ba)

    print(ba[2:11])
    print(ba)

if __name__ == '__main__':
    ...
    test01('info.log')